package com.atguigu.ssm.service;

import com.atguigu.ssm.pojo.Employee;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author 31427
 * @create 2022/10/9 20:04
 * @description
 */
public interface EmployeeService {
    List<Employee> getAllEmployee();

    /**
     * 获取员工的分页信息
     * @param pageNum
     * @return
     */
    PageInfo<Employee> getEmployeePage(Integer pageNum);

    /**
     * 添加员工信息
     */
    void addEmployee(Employee employee);

    /**
     * 根据empId来查询员工信息
     * @param empId
     * @return
     */
    Employee queryemployeeByEmpId(Integer empId);

    /**
     * 修改员工信息
     * @param employee
     */
    void updateEmployee(Employee employee);

    /**
     * 根据id删除员工信息
     */
    void deleteEmployee(Integer empId);
}
